﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VRA.Dto;

namespace VRA.BusinessLayer
{
    public interface IWorkProcess
    {
        /// <summary>
        /// returns work list
        /// </summary>
        /// <returns>Work list in data base</returns>
        IList<WorkDto> GetList();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="title"></param>
        /// <param name="ArtistName"></param>
        /// <param name="Copy"></param>
        /// <param name="description"></param>
        /// <returns></returns>
        IList<WorkDto> SearchWork(string title, string ArtistName, string Copy);
        /// <summary>
        /// return work by their id number
        /// </summary>
        /// <param name="id"> uniq number</param>
        /// <returns>work from DB</returns>
        WorkDto Get(int id);

        IList<WorkDto> GetListInGallery();

        void Add(WorkDto work);

        void Update(WorkDto work);

        /// <summary>
        /// delete work with this id
        /// </summary>
        /// <param name="id"> uniq identifier</param>
        void Delete(int id);
    }
}
